/**
 * Created by codeczx on 2018/3/19.
 */
public class Producer implements Runnable {

    QueueBuffer buffer;

    Producer(QueueBuffer buffer) {
        this.buffer = buffer;
    }

    @Override
    public void run() {
        while (true) {
            buffer.put();
        }
    }
}
